package com.example.allplan.SQhelper;

import android.content.Context;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;
import androidx.appcompat.widget.SearchView;

public class NaoZhongSQhelper extends SQLiteOpenHelper {
final String CHUANG_JIAN_NAO_ZHONG_BIAO="create table nao_zhong_biao(id int primary key,kai_shi_zhi int,chi_xu_zhi int,jie_shu_zhi int,nao_zhong_ming varchar(15))";
    Context mcon;
    public NaoZhongSQhelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
        mcon=context;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CHUANG_JIAN_NAO_ZHONG_BIAO);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
